package com.yhao.stock.common.utils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.UUID;

/**
 * @author yhao
 * @version 1.0.0
 * @date 2020-08-19 - 13:57
 * @desc TODO
 */
public class StringUtil {


    public static String getUUID() {
        String s = UUID.randomUUID().toString();
        return s.substring(0, 8) + s.substring(9, 13) + s.substring(14, 18) + s.substring(19, 23) + s.substring(24);
    }

    public static boolean isEmpty(String content) {
        if (content != null && !"".equals(content) && !"".equals(content.trim())) {
            return false;
        }
        return true;
    }

}
